package guo.abstract_interface;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class Maint {
    public static void main(String[] args) throws ClassNotFoundException, InvocationTargetException, InstantiationException, IllegalAccessException {

        Class<?> aClass = Class.forName("guo.abstract_interface.interface_test");
        Field[] fields = aClass.getDeclaredFields();
        for (Field f:fields){
            System.out.println("f = " + f);
        }

        Method[] methods = aClass.getDeclaredMethods();
        for (Method method:methods){
            System.out.println("method = " + method);
        }

        Constructor<?>[] constructors = aClass.getDeclaredConstructors();
        for (Constructor constructor:constructors){
            System.out.println("constructor = " + constructor);
        }
    }
}
